package com.magicalcoder.youyamvc.app.goods.dao;

import com.magicalcoder.youyamvc.app.model.defined.IntegerDate;
import com.magicalcoder.youyamvc.app.model.defined.IntegerObject;
import com.magicalcoder.youyamvc.app.model.Goods;
import java.util.List;
import java.util.Map;

/**
* 代码为自动生成 Created by www.magicalcoder.com
* 如果你改变了此类 read 请将此行删除
* 欢迎加入官方QQ群:323237052
*/

public interface GoodsDao{
    Goods getGoods(Map<String, Object> query);
    List<Goods> getGoodsList(Map<String, Object> query);
    Integer getGoodsListCount(Map<String, Object> query);
    Long  insertGoods(Goods entity);
    Long  replaceGoods(Goods entity);
    void batchInsertGoods(List<Goods> list);
    void batchReplaceGoods(List<Goods> list);
    void batchUpdateGoods(List<Goods> list);
    void updateGoods(Goods entity);
    void updateGoodsWithoutNull(Goods entity);
    void updateGoodsByWhereSql(Map<String,Object> entity);

    void truncateGoods();
    void deleteGoods(Map<String, Object> query);
    void deleteGoodsList(Map<String, Object> query);
    void deleteGoodsByWhereSql(Map<String, Object> query);
    void batchDeleteGoods(List<Long> list);
    void batchDeleteGoodsList(List<Goods> entityList);
    List<IntegerDate> statisticsDateCountList(Map<String,Object> query);
    List<IntegerDate> statisticsDateIntervalList(Map<String,Object> query);
    List<IntegerObject> statisticsGroupList(Map<String,Object> query);
}
